package com.dealer.management.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dealer.management.entity.PurchaseOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;

@Mapper
public interface PurchaseOrderMapper extends BaseMapper<PurchaseOrder> {
    
    IPage<PurchaseOrder> selectPurchaseOrderPage(Page<PurchaseOrder> page, 
                                                  @Param("orderNo") String orderNo,
                                                  @Param("supplierId") Long supplierId,
                                                  @Param("startDate") LocalDateTime startDate,
                                                  @Param("endDate") LocalDateTime endDate,
                                                  @Param("status") Integer status);
}
